package cn.chinaflame.pagodas.entity;

import java.util.Objects;
import javax.persistence.*;
@Entity
@Table(name = "pa_bless", schema = "pagoda", catalog = "")
public class PaBless {
    private String id;
    private String sourceMemberId;
    private String sourceOpenid;
    private String sourceMobile;
    private String targetMemberId;
    private String targetOpenid;
    private String targetMobile;
    private String orderitemId;
    private String invitationId;
    private String beWishedName;
    private String beWishedSex;
    private String beWishedBirthday;
    private String beWishedMobile;
    private String beWishedAddress;
    private String beWishedMemo;
    private String productAreaId;
    private String productPositionId;
    private String productId;
    private String itemId;
    private String success;
    private String status;
    private String createtime;
    private String updatetime;

    @Id
    @Column(name = "id", nullable = false, length = 20)
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "source_mobile", nullable = true, length = 20)
    public String getSourceMobile() {
        return sourceMobile;
    }

    public void setSourceMobile(String sourceMobile) {
        this.sourceMobile = sourceMobile;
    }

    @Basic
    @Column(name = "target_mobile", nullable = true, length = 20)
    public String getTargetMobile() {
        return targetMobile;
    }

    public void setTargetMobile(String targetMobile) {
        this.targetMobile = targetMobile;
    }

    @Basic
    @Column(name = "invitation_id", nullable = true, length = 20)
    public String getInvitationId() {
        return invitationId;
    }

    public void setInvitationId(String invitationId) {
        this.invitationId = invitationId;
    }

    @Basic
    @Column(name = "product_area_id", nullable = true, length = 20)
    public String getProductAreaId() {
        return productAreaId;
    }

    public void setProductAreaId(String productAreaId) {
        this.productAreaId = productAreaId;
    }

    @Basic
    @Column(name = "product_position_id", nullable = true, length = 20)
    public String getProductPositionId() {
        return productPositionId;
    }

    public void setProductPositionId(String productPositionId) {
        this.productPositionId = productPositionId;
    }

    @Basic
    @Column(name = "product_id", nullable = true, length = 20)
    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    @Basic
    @Column(name = "item_id", nullable = true, length = 20)
    public String getItemId() {
        return itemId;
    }

    public void setItemId(String itemId) {
        this.itemId = itemId;
    }

    @Basic
    @Column(name = "be_wished_name", nullable = true, length = 20)
    public String getBeWishedName() {
        return beWishedName;
    }

    public void setBeWishedName(String beWishedName) {
        this.beWishedName = beWishedName;
    }

    @Basic
    @Column(name = "be_wished_sex", nullable = true, length = 1)
    public String getBeWishedSex() {
        return beWishedSex;
    }

    public void setBeWishedSex(String beWishedSex) {
        this.beWishedSex = beWishedSex;
    }

    @Basic
    @Column(name = "be_wished_birthday", nullable = true, length = 20)
    public String getBeWishedBirthday() {
        return beWishedBirthday;
    }

    public void setBeWishedBirthday(String beWishedBirthday) {
        this.beWishedBirthday = beWishedBirthday;
    }

    @Basic
    @Column(name = "be_wished_mobile", nullable = true, length = 15)
    public String getBeWishedMobile() {
        return beWishedMobile;
    }

    public void setBeWishedMobile(String beWishedMobile) {
        this.beWishedMobile = beWishedMobile;
    }

    @Basic
    @Column(name = "be_wished_address", nullable = true, length = 50)
    public String getBeWishedAddress() {
        return beWishedAddress;
    }

    public void setBeWishedAddress(String beWishedAddress) {
        this.beWishedAddress = beWishedAddress;
    }

    @Basic
    @Column(name = "be_wished_memo", nullable = true, length = 200)
    public String getBeWishedMemo() {
        return beWishedMemo;
    }

    public void setBeWishedMemo(String beWishedMemo) {
        this.beWishedMemo = beWishedMemo;
    }

    @Basic
    @Column(name = "source_member_id", nullable = true, length = 20)
    public String getSourceMemberId() {
        return sourceMemberId;
    }

    public void setSourceMemberId(String sourceMemberId) {
        this.sourceMemberId = sourceMemberId;
    }

    @Basic
    @Column(name = "source_openid", nullable = true, length = 40)
    public String getSourceOpenid() {
        return sourceOpenid;
    }

    public void setSourceOpenid(String sourceOpenid) {
        this.sourceOpenid = sourceOpenid;
    }

    @Basic
    @Column(name = "target_member_id", nullable = true, length = 20)
    public String getTargetMemberId() {
        return targetMemberId;
    }

    public void setTargetMemberId(String targetMemberId) {
        this.targetMemberId = targetMemberId;
    }

    @Basic
    @Column(name = "target_openid", nullable = true, length = 40)
    public String getTargetOpenid() {
        return targetOpenid;
    }

    public void setTargetOpenid(String targetOpenid) {
        this.targetOpenid = targetOpenid;
    }

    @Basic
    @Column(name = "orderitem_id", nullable = true, length = 20)
    public String getOrderitemId() {
        return orderitemId;
    }

    public void setOrderitemId(String orderitemId) {
        this.orderitemId = orderitemId;
    }

    @Basic
    @Column(name = "success", nullable = true, length = 1)
    public String getSuccess() {
        return success;
    }

    public void setSuccess(String success) {
        this.success = success;
    }

    @Basic
    @Column(name = "status", nullable = true, length = 5)
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Basic
    @Column(name = "createtime", nullable = true)
    public String getCreatetime() {
        return createtime;
    }

    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }

    @Basic
    @Column(name = "updatetime", nullable = true)
    public String getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(String updatetime) {
        this.updatetime = updatetime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        PaBless paBless = (PaBless) o;
        return Objects.equals(id, paBless.id) &&
                Objects.equals(sourceMemberId, paBless.sourceMemberId) &&
                Objects.equals(sourceOpenid, paBless.sourceOpenid) &&
                Objects.equals(targetMemberId, paBless.targetMemberId) &&
                Objects.equals(targetOpenid, paBless.targetOpenid) &&
                Objects.equals(orderitemId, paBless.orderitemId) &&
                Objects.equals(success, paBless.success) &&
                Objects.equals(status, paBless.status) &&
                Objects.equals(createtime, paBless.createtime) &&
                Objects.equals(updatetime, paBless.updatetime);
    }

    @Override
    public int hashCode() {

        return Objects.hash(id, sourceMemberId, sourceOpenid, targetMemberId, targetOpenid, orderitemId, success, status, createtime, updatetime);
    }
}
